//
//  ListRowView.swift
//  ClockIn
//
//  Created by enrique leo on 8/8/21.
//

import SwiftUI

struct ListRowView: View {
    var date: String
    var place: String
    var share: String
    
    var body: some View {
        VStack(alignment: .leading){
            Text("日期：\(date)")
            
            Spacer()
            
            Text("地点：\(place)")
                
            Spacer()
            
            Text("旅游心得：\(share)")
        }
    }
}

struct ListRowView_Previews: PreviewProvider {
//    static var previews: some View {
//        ListRowView(date: "2021-08-08", place: "SYSU", share: "None")
//    }
    static var previews: some View {
        Group {
            ListRowView(date: "2021-08-08", place: "SYSU", share: "None")
            
            ListRowView(date: "2021-08-08", place: "SYSU", share: "None")
        }
        .previewLayout(.fixed(width: 400, height: 80))
 
    }
}
